<?php
class Province extends Eloquent {

	protected $table = 'provinces';
	
	/**
	 * get all provinces in database
	 * @author Thuan Truong
	 */
	public function getAllProvinces () {
		$provinces = Province::whereRaw('status = ? and is_deleted = ?', array(1,0))->get();
		return $provinces;
	}
}